using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._UtilityNetworkTools
{
    /// <summary>
    /// <para>Apply Mainline Tree Layout</para>
    /// <para>Apply the mainline tree layout to a diagram</para>
    /// <para>将主线树布局应用于关系图</para>
    /// </summary>    
    [DisplayName("Apply Mainline Tree Layout")]
    public class ApplyMainlineTreeLayout : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ApplyMainlineTreeLayout()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_network_diagram_layer">
        /// <para>Input Network Diagram Layer</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public ApplyMainlineTreeLayout(object _in_network_diagram_layer)
        {
            this._in_network_diagram_layer = _in_network_diagram_layer;
        }
        public override string ToolboxName => "Utility Network Tools";

        public override string ToolName => "Apply Mainline Tree Layout";

        public override string CallName => "un.ApplyMainlineTreeLayout";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_network_diagram_layer, _are_containers_preserved.GetGPValue(), _tree_direction.GetGPValue(), _branches_placement.GetGPValue(), _is_unit_absolute.GetGPValue(), _perpendicular_absolute, _perpendicular_proportional, _along_absolute, _along_proportional, _disjoined_graph_absolute, _disjoined_graph_proportional, _are_edges_orthogonal.GetGPValue(), _breakpoint_position, _out_network_diagram_layer, _edge_display_type.GetGPValue(), _run_async.GetGPValue(), _offset_absolute, _offset_proportional];

        /// <summary>
        /// <para>Input Network Diagram Layer</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Network Diagram Layer")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_network_diagram_layer { get; set; }


        /// <summary>
        /// <para>Preserve container layout</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Preserve container layout")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _are_containers_preserved_value _are_containers_preserved { get; set; } = _are_containers_preserved_value._false;

        public enum _are_containers_preserved_value
        {
            /// <summary>
            /// <para>PRESERVE_CONTAINERS</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("PRESERVE_CONTAINERS")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>IGNORE_CONTAINERS</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("IGNORE_CONTAINERS")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Tree Direction</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Tree Direction")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _tree_direction_value _tree_direction { get; set; } = _tree_direction_value._FROM_LEFT_TO_RIGHT;

        public enum _tree_direction_value
        {
            /// <summary>
            /// <para>FROM_LEFT_TO_RIGHT</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("FROM_LEFT_TO_RIGHT")]
            [GPEnumValue("FROM_LEFT_TO_RIGHT")]
            _FROM_LEFT_TO_RIGHT,

            /// <summary>
            /// <para>FROM_RIGHT_TO_LEFT</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("FROM_RIGHT_TO_LEFT")]
            [GPEnumValue("FROM_RIGHT_TO_LEFT")]
            _FROM_RIGHT_TO_LEFT,

            /// <summary>
            /// <para>FROM_BOTTOM_TO_TOP</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("FROM_BOTTOM_TO_TOP")]
            [GPEnumValue("FROM_BOTTOM_TO_TOP")]
            _FROM_BOTTOM_TO_TOP,

            /// <summary>
            /// <para>FROM_TOP_TO_BOTTOM</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("FROM_TOP_TO_BOTTOM")]
            [GPEnumValue("FROM_TOP_TO_BOTTOM")]
            _FROM_TOP_TO_BOTTOM,

        }

        /// <summary>
        /// <para>Branches Placement</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Branches Placement")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _branches_placement_value _branches_placement { get; set; } = _branches_placement_value._BOTH_SIDES;

        public enum _branches_placement_value
        {
            /// <summary>
            /// <para>BOTH_SIDES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("BOTH_SIDES")]
            [GPEnumValue("BOTH_SIDES")]
            _BOTH_SIDES,

            /// <summary>
            /// <para>LEFT_SIDE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("LEFT_SIDE")]
            [GPEnumValue("LEFT_SIDE")]
            _LEFT_SIDE,

            /// <summary>
            /// <para>RIGHT_SIDE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("RIGHT_SIDE")]
            [GPEnumValue("RIGHT_SIDE")]
            _RIGHT_SIDE,

        }

        /// <summary>
        /// <para>Spacing values interpreted as absolute units in the diagram coordinate system</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Spacing values interpreted as absolute units in the diagram coordinate system")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _is_unit_absolute_value _is_unit_absolute { get; set; } = _is_unit_absolute_value._false;

        public enum _is_unit_absolute_value
        {
            /// <summary>
            /// <para>ABSOLUTE_UNIT</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("ABSOLUTE_UNIT")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>PROPORTIONAL_UNIT</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("PROPORTIONAL_UNIT")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Between Junctions Perpendicular to the Direction</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Between Junctions Perpendicular to the Direction")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public string _perpendicular_absolute { get; set; } = "2 Unknown";


        /// <summary>
        /// <para>Between Junctions Perpendicular to the Direction</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Between Junctions Perpendicular to the Direction")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _perpendicular_proportional { get; set; } = 2;


        /// <summary>
        /// <para>Between Junctions Along the Direction</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Between Junctions Along the Direction")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public string _along_absolute { get; set; } = "2 Unknown";


        /// <summary>
        /// <para>Between Junctions Along the Direction</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Between Junctions Along the Direction")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _along_proportional { get; set; } = 2;


        /// <summary>
        /// <para>Between Disjoined Graphs</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Between Disjoined Graphs")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public string _disjoined_graph_absolute { get; set; } = "4 Unknown";


        /// <summary>
        /// <para>Between Disjoined Graphs</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Between Disjoined Graphs")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _disjoined_graph_proportional { get; set; } = 4;


        /// <summary>
        /// <para>Orthogonally display edges</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Orthogonally display edges")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _are_edges_orthogonal_value _are_edges_orthogonal { get; set; } = _are_edges_orthogonal_value._false;

        public enum _are_edges_orthogonal_value
        {
            /// <summary>
            /// <para>ORTHOGONAL_EDGES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("ORTHOGONAL_EDGES")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>SLANTED_EDGES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("SLANTED_EDGES")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Break Point Relative Position (%)</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Break Point Relative Position (%)")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _breakpoint_position { get; set; } = 30;


        /// <summary>
        /// <para>Output Network Diagram</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Network Diagram")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_network_diagram_layer { get; set; }


        /// <summary>
        /// <para>Edge Display Type</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Edge Display Type")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _edge_display_type_value _edge_display_type { get; set; } = _edge_display_type_value._REGULAR_EDGES;

        public enum _edge_display_type_value
        {
            /// <summary>
            /// <para>REGULAR_EDGES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("REGULAR_EDGES")]
            [GPEnumValue("REGULAR_EDGES")]
            _REGULAR_EDGES,

            /// <summary>
            /// <para>ORTHOGONAL_EDGES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("ORTHOGONAL_EDGES")]
            [GPEnumValue("ORTHOGONAL_EDGES")]
            _ORTHOGONAL_EDGES,

            /// <summary>
            /// <para>CURVED_EDGES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("CURVED_EDGES")]
            [GPEnumValue("CURVED_EDGES")]
            _CURVED_EDGES,

        }

        /// <summary>
        /// <para>Run in asynchronous mode on the server</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Run in asynchronous mode on the server")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _run_async_value _run_async { get; set; } = _run_async_value._false;

        public enum _run_async_value
        {
            /// <summary>
            /// <para>RUN_ASYNCHRONOUSLY</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("RUN_ASYNCHRONOUSLY")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>RUN_SYNCHRONOUSLY</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("RUN_SYNCHRONOUSLY")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Offset</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Offset")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public string _offset_absolute { get; set; } = "0 Unknown";


        /// <summary>
        /// <para>Offset</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Offset")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _offset_proportional { get; set; } = 0;


        public ApplyMainlineTreeLayout SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}